package com.polukeuro.app.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class ConsummerLoadDataEvent extends GwtEvent<ConsummerHandler> {
	
	private static Type<ConsummerHandler> TYPE = new Type<ConsummerHandler>();

	private final String json;
	
	public ConsummerLoadDataEvent(String json) {
		this.json = json;
	}

	@Override
	protected void dispatch(ConsummerHandler handler) {
		handler.loadData(this);

	}
	
	public static Type<ConsummerHandler> getType() {
		return TYPE;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ConsummerHandler> getAssociatedType() {
		// TODO Auto-generated method stub
		return TYPE;
	}

	public String getJson() {
		return json;
	}

}
